#{set title:'Extranet' /} 
#{extends 'main.html' /}

<!-- barra superior. codigo para mostrar o nome do usuario logado -->
<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span
				class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
			</a> <a class="brand" align="center"> &nbsp; EXTRANET - Sistema de Controle de Tarefas</a>
			<div>
				<ul class="nav pull-right">

					<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> Ola,
							<b>${user}</b> <b class="caret"></b>
					</a>
						<ul class="dropdown-menu">
							<li><a href="@{Application.logout()}"> <i class="icon-off"></i> Sair</a></li>
						</ul></li>
				</ul>
			</div>
		</div>
	</div>
</div>

<!-- Tabela das tarefas -->
<div align="center">
<label align=center> <h3> Projetos </h3> </label>
<br><br>
	<table class="table table-striped table-bordered table-condensed" style="width:50%;">
		<tr>
			<th>Cliente</th>
			<th>Projeto</th>
			<th>Valor</th>
		</tr>
	#{list projetos, as:'t'}
		 <tr>
			 <td>${t.cliente.nome}</td>
			 <td>${t.nomeProjeto}</td>
			 <td>${t.valor} R$</td>
		 </tr>
	 #{/list}
	</table>
</div>
